﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PalFramework
{
    public struct ArrayCoordinate
    {
        public int PosX;
        public int PosY;
        public int Row;
        public int Column;

        public ArrayCoordinate(string str)
        {
            int left = str.IndexOf("(");
            int right = str.IndexOf(")");
            str = str.Substring(left + 1, right - left - 1);
            string[] nums = str.Split(',');
            Row = Convert.ToInt32(nums[0].Trim());
            Column = Convert.ToInt32(nums[1].Trim());
            PosX = Convert.ToInt32(nums[2].Trim());
            PosY = Convert.ToInt32(nums[3].Trim());

        }
    }

    public struct EnemyGraphicInfo
    {
        public int IdleFrames;
        public int CastFrames;
        public int AttackFrames;
        public int IdleSpan;
        public int Data5;
        public int YRevice;
    }
}
